主题
文本嵌入 [chat兼容格式]
POST
https://az.gptplus5.com/v1/embeddings
请求参数
Authorization
在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token
示例:Authorization: Bearer ********************
Header 参数
| 参数名 | 类型 | 必需 | 说明 | 示例 |
|---|---|---|---|---|
Content-Type | string | 可选 | application/json | |
Accept | string | 可选 | application/json | |
Authorization | string | 可选 | Bearer {{YOUR_API_KEY}} |
Body 参数 (application/json)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
model | string | 必需 | |
input | string | 必需 | |
dimensions | integer | 可选 |
请求示例
json
{
"model": "string",
"input": "string",
"dimensions": 0
}cURL 示例
bash
curl --location --request POST 'https://az.gptplus5.com/v1/embeddings' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"input": "string",
"dimensions": 0
}'返回响应
🟢200成功
响应示例
json
{}